(c) 2004 Alex Konshin <akonshin@earthlink.net>

    CEBin - Windows CE ROM image processing utility.

1. Usage.

  You can process ROM image using command line options or create text
file that contains commands for the utility. The second way is preffered 
and the set of avalable commands will be extended but the set of 
command line options will remain restricted.

  The format of command file is simple. Each line may contain command.
Empty lines and lines started with '#' or ';' are ignored. Substrings 
enclosed in syblols '%' are expanded - they will be replaced with values
of corresponded environment varibles. Parameters of commands are separated
by blanks or tabulation symbols. If parameter should contain blanks - 
enclose whole parameter in doublequotes.

 
  Now the utility recognize and execute the following commands:

  image <image_file> - set the current ROM image file (usually a file with 
extention ".bin"). If option "verbose" is "on" then this command also
display various information about ROM image.

  extractFile <filename> <output_dir> - extract file from the current 
ROM image to the specified directory.

  extractFiles <output_dir> - extract all files from the current ROM 
image to the specified directory.

  extractModule <filename> <output_dir> - extract module to the specified 
directory. Please note that the utility tries to reconstruct original file 
but it can't restore some information like relocation table because it is 
lost. But the resulting file is good enough to load it to disassembler like 
IDA.

  extractModules <output_dir> - extract all modules to the specified 
directory.

  replaceFile <filename> <new_file_path> - replace file <filename> in ROM 
image with file <new_file_path>. Be very careful with this command. Please 
note that addresses in image must be recalculated if the sizes of files are
different. The utility does it but I can't garantee that it does everything.

  extractRecord <address> <output_file_path> - extract the record at 
specified address from the current ROM image to the specified file.

  extractFiles <output_dir> - extract all records from the current ROM 
image to the specified directory.

  echo <string> - type <string> on console (or stdout).

  verbose on|off - set verbosity level.

